package com.proscenic.oauth.server.controller;

import com.proscenic.oauth.server.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private LoginService loginService;

    @PostMapping("/login")
    public Object login(String username, String password){
        return loginService.login(username, password);
    }
}
